-- WechatAgent
-- Created by chenx 2016.8.25
-- 微信代理

module("WechatAgent", package.seeall);

-- 初始化
function init()
end

----------------------
-- 通过微信购买商品
-- @param sku 商品库存标识
function buyPurchase(sku)
    local serverId = getCurrentServerId();
    local account  = getGaming3rdAccount() or "qc_13982886799";
    local platform = PUBLISH_PLATFORM;

    callJavaFuncWithClass("com.WechatDelegate", "buyPurchase", {sku, account, serverId, platform},
        "(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V");
end
